# Lesson 3: CSS Classes

Classes in CSS allow you to style multiple elements with the same rules.

Example:

    <style>
    .box {
        background: lightblue;
        padding: 10px;
    }
    </style>

    <div class="box">
            Hello Box!</div>

## 1. How do you define a class in CSS?

## 2. How do you apply a class to a div?

## 3. Try it yourself!

Create a div with class "box" and the text: "Styled with class!"

← Back